home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
bbs
/
utilz20x.zip
/
GODIR
/
GODIR.DOC
< prev
next >
Wrap
Text File
|
1997-01-21
|
2KB
|
45 lines
SYNOPSIS
godir - change to a directory based on alias
PURPOSE
This little utility saves a lot of typing. Instead of typing long
paths when changing directories, you use a short alias and let
GoDir do the rest. Note that unlike the standard 'chdir' command,
GoDir works across drives perfectly fine. The format of the alias
file is simple (please, refer to the enclosed sample).
#
# ---------------------------------------------------------------------
# Keyword Absolute directory Comment
# ---------------------------------------------------------------------
DOCS C:\SCI\DIST\DOCS # Docs ready for distribution
BIN E:\SCI\DIST\BIN # Binaries ready for distribution
# ---------------------------------------------------------------------
#
As you can see, the first column is the alias that we will use (no
spaces allowed). The second column is the destination path, and the
rest of the columns are used for commenting (they are ignored). Note
also that lines beginning with '#' are ignored as well. The spacing
is liberal (i.e. you don't have to worry about alignment). GoDir is
NOT case-sensitive.
The default data file should have the same name as the executable, but
with a .DAT extension (default GODIR.DAT) and must reside in the same
directory as the executable.
EXAMPLE
godir docs
Changes to 'C:\SCI\DIST\DOCS' regardless of where we are (if we
are using the sample config above). The control file is GODIR.DAT
godir BIN altdat.cfg
Changes to 'E:\SCI\DIST\BIN' and uses 'ALTDAT.CFG' in the current
directory as the data file (this, of course, assumes that we do
have an entry for 'bin' as the example above).
AUTHOR
Branislav L. Slantchev
Silicon Creations, Inc.